CC=gcc
OBJS=myapi.o
LIBS=
LFLAGS= $(LIBS) -shared -Le:/devs/python31/libs -L./mysql/lib -lpython31 -lmysql
CFLAGS= -Wall -Ie:/devs/python31/include -I./mysql/include

RM=rm -rf

all:myapi.pyd
clean:
	$(RM) *.o myapi.pyd *.pyc

myapi.pyd: myapi.o
	$(CC) -o $@ $< $(LFLAGS)

%.o: %.cpp
#  commands to execute (built-in):
	$(CC) -o $@ -c $< $(CFLAGS)
